<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("comds", $con);
$dateTime = date("Y-m-d",strtotime("-1 day"));

mysql_query("INSERT INTO comds SELECT NULL, TotalExp, FirstLoginTime, FirstLogin,TotalDollorGet,TodayGameTime, TodayTCrystalLose, Crystal, TodayGoldGet, TodayGoldLose, Cracked,WeaponList, TodayExp,
TodayIapInfo, 099cents1, 099cents2, new499cents1, new499cents2, new999cents1,new999cents2, new1999cents1, new1999cents2, new4999cents1, new4999cents2,
ChoosePointsUI,ShopUI_Weapon, ShopUI_Avatar, ShopUI_PowerUPS, ShopUI_Bank, BoostUI_Skill,TeamUI_Friend, TeamUI_MERC, MERC_UI, OptionUI, BattleUI_Pause, BattleUI_Item,
BattleUI_Dead, ExchangeUI, Gold,LEVEL , GameActiveTime, TotalGoldGet, UILastId, HireoutSelfTimes, TotalGameTime,TodayTCrystalGet, deviceid, gamename, createdate, date  FROM  comds_query_temp");

mysql_close($con);
?>